<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<input id="companyId" name="companyId" th:value="${dlCompany.companyId}"  type="hidden">
							<div class="form-group">
								<label class="col-sm-3 control-label">所在行业：</label>
								<div class="col-sm-8">
									<input required lay-verify="required" id="trade" th:readonly="${type !='1'}" name="trade" th:value="${dlCompany.trade}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">全称：</label>
								<div class="col-sm-8">
									<input required lay-verify="required" id="fullName" th:readonly="${type !='1'}" name="fullName" th:value="${dlCompany.fullName}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">简称：</label>
								<div class="col-sm-8">
									<input required lay-verify="required" id="shortName" th:readonly="${type !='1'}" name="shortName" th:value="${dlCompany.shortName}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">融资阶段：</label>
								<div class="col-sm-8">
									<select class="form-control" name="funding" th:readonly="${type !='1'}" required lay-verify="required">
										<option th:selected="${dlCompany.funding == '0'}" value="0">未融资</option>
										<option th:selected="${dlCompany.funding == '1'}" value="1">天使轮</option>
										<option th:selected="${dlCompany.funding == '2'}" value="2">A轮</option>
										<option th:selected="${dlCompany.funding == '3'}" value="3">B轮</option>
										<option th:selected="${dlCompany.funding == '4'}" value="4">C轮</option>
										<option th:selected="${dlCompany.funding == '5'}" value="5">D轮及以上</option>
										<option th:selected="${dlCompany.funding == '6'}" value="6">已上市</option>
										<option th:selected="${dlCompany.funding == '7'}" value="7">不需要融资</option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">人员规模：</label>
								<div class="col-sm-8">
									<select class="form-control" name="scale" th:readonly="${type !='1'}"  required lay-verify="required">
										<option th:selected="${dlCompany.scale == '0'}" value="0">0-20人</option>
										<option th:selected="${dlCompany.scale == '1'}" value="1">20-99人</option>
										<option th:selected="${dlCompany.scale == '2'}" value="2">100-499人</option>
										<option th:selected="${dlCompany.scale == '3'}" value="3">1000-9999人</option>
										<option th:selected="${dlCompany.scale == '4'}" value="4">10000人以上</option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">简介：</label>
								<div class="col-sm-8">
									<textarea maxlength="500" th:readonly="${type !='1'}" th:text="${dlCompany.intro}" name="intro" class="layui-textarea"></textarea>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">上班时间：</label>
								<div class="col-sm-8">
									<input id="startTime" required lay-verify="required" th:readonly="${type !='1'}" name="startTime" th:value="${#dates.format(dlCompany.startTime, 'HH:mm')}" class="form-control" type="time">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">下班时间：</label>
								<div class="col-sm-8">
									<input id="endTime" required lay-verify="required" th:readonly="${type !='1'}" name="endTime" th:value="${#dates.format(dlCompany.endTime, 'HH:mm')}" class="form-control" type="time">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">地址：</label>
								<div class="col-sm-8">
									<input id="addr" required lay-verify="required" th:readonly="${type !='1'}" name="addr" th:value="${dlCompany.addr}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">经度：</label>
								<div class="col-sm-8">
									<input id="longitude" required lay-verify="required" th:readonly="${type !='1'}" name="longitude" th:value="${dlCompany.longitude}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">纬度：</label>
								<div class="col-sm-8">
									<input id="latitude" required lay-verify="required" th:readonly="${type !='1'}" name="latitude" th:value="${dlCompany.latitude}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">营业许可序号：</label>
								<div class="col-sm-8">
									<input id="businessLicenseNum" required lay-verify="required" th:readonly="${type !='1'}" name="businessLicenseNum" th:value="${dlCompany.businessLicenseNum}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">手机号码：</label>
								<div class="col-sm-8">
									<input id="phone" name="phone" required lay-verify="required" th:readonly="${type !='1'}" th:value="${dlCompany.phone}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">logo：</label>
								<div class="col-sm-8">
									<input id="logo" th:if="${type =='1'}" accept="image/jpeg,image/jpg,image/png,image/svg" class="form-control" type="file" onchange="fileUpload('logo', 8)">
									<input required lay-verify="required" th:readonly="${type !='1'}" name="logo" th:value="${dlCompany.logo}" class="form-control" type="hidden">
									<img id="showlogo" th:src="${dlCompany.logo}" style="margin-top: 10px;width: 200px;height: auto;"/>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">身份证正面：</label>
								<div class="col-sm-8">
									<input id="identityCardFront" th:if="${type =='1'}" accept="image/jpeg,image/jpg,image/png,image/svg" class="form-control" type="file" onchange="fileUpload('identityCardFront', 3)">
									<input required lay-verify="required" th:readonly="${type !='1'}" name="identityCardFront" th:value="${dlCompany.identityCardFront}" class="form-control" type="hidden">
									<img id="showidentityCardFront" th:src="${dlCompany.identityCardFront}" style="margin-top: 10px;width: 200px;height: auto;"/>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">身份证反面：</label>
								<div class="col-sm-8">
									<input id="identityCardContrary" th:if="${type =='1'}" accept="image/jpeg,image/jpg,image/png,image/svg" class="form-control" type="file" onchange="fileUpload('identityCardContrary', 5)">
									<input required lay-verify="required" th:readonly="${type !='1'}" name="identityCardContrary" th:value="${dlCompany.identityCardContrary}" class="form-control" type="hidden">
									<img id="showidentityCardContrary" th:src="${dlCompany.identityCardContrary}" style="margin-top: 10px;width: 200px;height: auto;"/>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">手持身份证：</label>
								<div class="col-sm-8">
									<input id="identityCardHand" th:if="${type =='1'}" accept="image/jpeg,image/jpg,image/png,image/svg" class="form-control" type="file" onchange="fileUpload('identityCardHand', 6)">
									<input required lay-verify="required" th:readonly="${type !='1'}" name="identityCardHand" th:value="${dlCompany.identityCardHand}" class="form-control" type="hidden">
									<img id="showidentityCardHand" th:src="${dlCompany.identityCardHand}" style="margin-top: 10px;width: 200px;height: auto;"/>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">营业许可证：</label>
								<div class="col-sm-8">
									<input id="businessLicense" th:if="${type =='1'}" accept="image/jpeg,image/jpg,image/png,image/svg" class="form-control" type="file" onchange="fileUpload('businessLicense', 7)">
									<input required lay-verify="required" th:readonly="${type !='1'}" name="businessLicense" th:value="${dlCompany.businessLicense}" class="form-control" type="hidden">
									<img id="showbusinessLicense" th:src="${dlCompany.businessLicense}" style="margin-top: 10px;width: 200px;height: auto;"/>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">公司相册：</label>
								<div class="form-group" th:each="itme:${DlCompanyAlbumDOs}">
									<input name="ids" type="hidden" th:value="${itme.companyAlbumId}">
									<div class="col-sm-8">
										<img id="fileName" name="ids" th:src="${itme.fileName}" class="img-preview-sm">
									</div>
								</div>
							</div>
							<div class="form-group" th:if="${type == '1'}">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>

								</div>
							</div>
							<div class="form-group" th:if="${type != '1' && dlCompany.auditStatus == '3'}">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="button" onclick="status(1)" class="btn btn-primary">审核通过</button>
									<button type="button" onclick="status(2)" class="btn btn-danger">审核不通过</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/system/dlCompany/edit.js">
	</script>
</body>
</html>
